package com.blog.cloud.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;

/**
 * 角色菜单表(RoleMenu)表实体类
 *
 * @author 龙茶清欢
 * @since 2023-02-26 19:12:23
 */
@Getter
@Setter
@TableName("t_role_menu")
@Schema(name = "角色菜单表实体", description = "角色菜单表映射")
public class RoleMenu implements Serializable {
    @Serial
    private static final long serialVersionUID = -49826190504616527L;

    @TableId(value = "role_id" , type = IdType.AUTO)
    @Schema(description = "角色ID")
    private Long roleId;

    @TableField(value = "menu_id")
    @Schema(description = "菜单ID")
    private Long menuId;
}

